Optimal. Leaf size=37 \[ -\frac{\cos (c+d x) \sin ^{n+1}(c+d x) (a \sin (c+d x)+a)^{-n-2}}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.119467, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 43, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.023, Rules used = {2974} \[ -\frac{\cos (c+d x) \sin ^{n+1}(c+d x) (a \sin (c+d x)+a)^{-n-2}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2974
Rubi steps
\begin{align*} \int \sin ^n(c+d x) (a+a \sin (c+d x))^{-2-n} (-1-n-(-2-n) \sin (c+d x)) \, dx &=-\frac{\cos (c+d x) \sin ^{1+n}(c+d x) (a+a \sin (c+d x))^{-2-n}}{d}\\ \end{align*}
Mathematica [B] time = 1.5116, size = 107, normalized size = 2.89 \[ -\frac{2^n \sin \left (\frac{1}{2} (c+d x)\right ) \left (\sin \left (\frac{1}{2} (c+d x)\right )+\cos \left (\frac{1}{2} (c+d x)\right )\right ) (-\sin (c+d x)+\cos (c+d x)+1) (a (\sin (c+d x)+1))^{-n-2} \left (\left (\sin \left (\frac{3}{4} (c+d x)\right )-\sin \left (\frac{1}{4} (c+d x)\right )\right ) \cos \left (\frac{1}{4} (c+d x)\right )\right )^n}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.546, size = 0, normalized size = 0. \begin{align*} \int \left ( \sin \left ( dx+c \right ) \right ) ^{n} \left ( a+a\sin \left ( dx+c \right ) \right ) ^{-2-n} \left ( -1-n- \left ( -2-n \right ) \sin \left ( dx+c \right ) \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left ({\left (n + 2\right )} \sin \left (d x + c\right ) - n - 1\right )}{\left (a \sin \left (d x + c\right ) + a\right )}^{-n - 2} \sin \left (d x + c\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.5027, size = 101, normalized size = 2.73 \begin{align*} -\frac{{\left (a \sin \left (d x + c\right ) + a\right )}^{-n - 2} \sin \left (d x + c\right )^{n} \cos \left (d x + c\right ) \sin \left (d x + c\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left ({\left (n + 2\right )} \sin \left (d x + c\right ) - n - 1\right )}{\left (a \sin \left (d x + c\right ) + a\right )}^{-n - 2} \sin \left (d x + c\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]